﻿using Base.Common;
using Base.WCS.Common;
namespace Base.WCS.Crane
{
    public abstract class CraneStatus : AbsStatus {
       public bool fault = true;
        protected CraneStatus(int id, CraneStatus bs) :base(id) {
            if (bs == null) {
                fault = true;
            }
            else { fault = bs.fault; }
        }
        public bool isfault() 
        { 
            return fault;
        }
        public void setFault() 
        {
            if( !fault ) {
                LoggerCommon.fileAll ( this.eId + "号堆垛机 error" );
            }
            fault = true;
        }
        public void clearFault()
        {
            LoggerCommon.fileAll(this.eId + "号堆垛机 error clear");
            fault = false;
        }
        public  abstract bool checkCrane();
      

  





    


      
       
    }
}
